<?php
// +----------------------------------------------------------------------
// | HisiPHP框架[基于ThinkPHP5.1开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2021 http://www.hisiphp.com
// +----------------------------------------------------------------------
// | HisiPHP承诺基础框架永久免费开源，您可用于学习和商用，但必须保留软件版权信息。
// +----------------------------------------------------------------------
// | Author: 橘子俊 <364666827@qq.com>，开发者QQ群：50304283
// +----------------------------------------------------------------------

namespace app\api\validate;

use think\Validate;


class RtcPlayValidate extends Validate
{
    //定义验证规则
    protected $rule = [
        'uid|用户id'       => 'require',
        'channel_id|频道id'    => 'require',
        'rtc_anchor_id|发起频道记录id'   =>'require',
        'page|页码' => 'require',
        'limit|每页多少条' => 'require',
    ];

    //定义验证提示
    protected $message = [
        'uid.require' => '缺少参数uid',
        'channel_id.require'  => '缺少参数 房间id',
        'rtc_anchor_id.require'  => '缺少参数发起房间记录id rtc_anchor_id',
        'limit.require' => '缺少参数 条数 limit',
        'page.require' => '缺少参数 条数 page',
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'getRtcUrl'  =>  ['stream_name','rtc_anchor_id'],
        'join'  =>  ['channel_id'],
        'list'  =>  ['id','limit','page'],
    ];



}
